<template>
	<view class="time_center">
		<view class="right_box" @click="choosetime(item)" v-for="item in dataList" :key="item.id">
			<view class="flexs2">
				<view class="right_list">{{item.name}}</view>
				<view class="right_chexs" v-if="releaindex == item.id">
					<image src="../static/img/ok@.png" mode=""></image>
				</view>
			</view>
		</view>
	</view>
	
</template>

<script>
	export default {
		props:{
			dataList:Array,
			releaindex:{
				typeof:Number,
			}
		},
		data(){
			return {
				
			}
		},
		methods:{
			choosetime(item){
				this.$emit('pricenewtime',item)
			}
			
		}
	}
</script>

<style scoped lang="scss">
	.time_center {
		width: 100%;
		height: auto;
		background-color: #fff;
		font-size: 14px;
		.right_box {
			padding: 0 30rpx;
		
			.right_list {
				width: 100%;
				line-height: 100rpx;
				font-size: 28rpx;
			}
		
			.time_font {
				font-weight: 700;
			}
		
			.right_chexs {
				image {
					width: 26rpx;
					height: 18rpx;
				}
			}
		}
		
	}
	
</style>